inspector: Make sure something is focusable on the stats page
authorMatthias Clasen <mclasen@redhat.com>
Thu, 11 Dec 2014 03:41:45 +0000 (22:41 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 11 Dec 2014 03:41:45 +0000 (22:41 -0500)
Without this, the focus will not be inside the top_stack when
we switch to the statistics page and it shows the excuse. This
in turn will make the next page not take focus as expected when
switching away from the statistics page again.

gtk/inspector/statistics.ui

index 42eb3112e47dc8a073f69e856b306e73d5f4aa30..820a39bde36a0d056a112d38c027c890e4817426 100644 (file)
           </packing>
         </child>
         <child>
-          <object class="GtkLabel">
+          <object class="GtkBox">
             <property name="visible">True</property>
+            <property name="can-focus">True</property>
             <property name="halign">center</property>
             <property name="valign">center</property>
-            <property name="label" translatable="yes">Enable statistics with GOBJECT_DEBUG=instance-count</property>
+            <child>
+              <object class="GtkLabel">
+                <property name="visible">True</property>
+                <property name="label" translatable="yes">Enable statistics with GOBJECT_DEBUG=instance-count</property>
+              </object>
+            </child>
           </object>
           <packing>
             <property name="name">excuse</property>